import request from "@/libs/request";

export function findLetterList(data) {
  return request({
    url: "/phonics/api/letterList",
    method: "post",
    data,
  });
}

export function getPhoneticDetail(data) {
  return request({
    url: "/phonics/api/getPhonetic",
    method: "post",
    data,
  });
}

export function getPhoneticChapter(data) {
  return request({
    url: "/phonics/api/findMyLearnProgress",
    method: "post",
    data,
  });
}

export function getPhoneticChapterDetail(id) {
  return request({
    url: `/phonics/api/getChapterOne/${id}`,
    method: "post",
  });
}

export function getPhoneticWordsDetail(id) {
  return request({
    url: `/phonics/api/getChapterWords/${id}`,
    method: "post",
  });
}

export function saveAcedChapterProgress(data) {
  return request({
    url: "/phonics/api/saveAcedChapterProgress",
    method: "post",
    data,
  });
}

export function findHitProgress(data) {
  return request({
    url: "/phonics/api/findHitProgress",
    method: "post",
    data,
  });
}

export function saveHitProgress(data) {
  return request({
    url: "/phonics/api/saveHitProgress",
    method: "post",
    data,
  });
}
